load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

alias(
    name = "any_go_proto",
    actual = "@com_github_golang_protobuf//ptypes/any:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "compiler_plugin_go_proto",
    actual = "@com_github_golang_protobuf//protoc-gen-go/plugin:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "descriptor_go_proto",
    actual = "@com_github_golang_protobuf//protoc-gen-go/descriptor:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "duration_go_proto",
    actual = "@com_github_golang_protobuf//ptypes/duration:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "empty_go_proto",
    actual = "@com_github_golang_protobuf//ptypes/empty:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "field_mask_go_proto",
    actual = "@org_golang_google_genproto//protobuf/field_mask:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "source_context_go_proto",
    actual = "@org_golang_google_genproto//protobuf/source_context:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "struct_go_proto",
    actual = "@com_github_golang_protobuf//ptypes/struct:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "timestamp_go_proto",
    actual = "@com_github_golang_protobuf//ptypes/timestamp:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "type_go_proto",
    actual = "@org_golang_google_genproto//protobuf/ptype:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "wrappers_go_proto",
    actual = "@com_github_golang_protobuf//ptypes/wrappers:go_default_library",
    visibility = ["//visibility:public"],
)

alias(
    name = "api_go_proto",
    actual = "@org_golang_google_genproto//protobuf/api",
    visibility = ["//visibility:public"],
)

filegroup(
    name = "all_rules",
    testonly = True,
    srcs = glob(["*.bzl"]),
    visibility = ["//visibility:public"],
)

filegroup(
    name = "all_files",
    testonly = True,
    srcs = glob(["**"]),
    visibility = ["//visibility:public"],
)

bzl_library(
    name = "well_known_types",
    srcs = ["well_known_types.bzl"],
    visibility = ["//visibility:public"],
    deps = [
        "//go:def",
        "//proto:compiler",
        "//proto:def",
    ],
)
